import request from '../utils/request';
const api = {
  //下载打印模板公用方法-pdf
  DownLoadTemplate(data?: any) {
    return request({
      url: '/api/Public/DownLoadTemplate',
      method: 'post',
      data,
      isRepeat: true, //允许重复提交
    });
  },
  //下载打印模板公用方法-excel
  DownLoadTemplateExcel(data?: any) {
    return request({
      url: '/api/Public/DownLoadTemplateExcel',
      method: 'post',
      data,
      isRepeat: true, //允许重复
    });
  },
  //获取所有表格的表头数据
  GetPageTableStyleDataList(data?: any) {
    return request({
      url: '/api/Public/GetPageTableStyleDataList',
      method: 'post',
      data,
    });
  },
  //保存操作菜单表格样式控制数据
  SaveOperatorPageTableStyle(data?: any) {
    return request({
      url: '/api/Public/SaveOperatorPageTableStyle',
      method: 'post',
      data,
    });
  },
  //获取业务订单类型数据
  GetSaleOrderTypeDataList(data?: any) {
    return request({
      url: '/api/Public/GetSaleOrderTypeDataList',
      method: 'post',
      data,
    });
  },
  //获取数据生产中的数据颜色数据
  GetDataProducesDataColorDataList(data?: any) {
    return request({
      url: '/api/Public/GetDataProducesDataColorDataList',
      method: 'post',
      data,
    });
  },
  //获取数据格式
  GetDataProducesDataFormatDataList(data?: any) {
    return request({
      url: '/api/Public/GetDataProducesDataFormatDataList',
      method: 'post',
      data,
    });
  },
  //获取自检数据
  GetDataProducesInspectProcessDataList(data?: any) {
    return request({
      url: '/api/Public/GetDataProducesInspectProcessDataList',
      method: 'post',
      data,
    });
  },
  //获取供应商类型数据
  GetSupplierTypeDataList(data?: any) {
    return request({
      url: '/api/Public/GetSupplierTypeDataList',
      method: 'post',
      data,
    });
  },
  //获取供应商结算方式数据
  GetSettlementWayDataList(data?: any) {
    return request({
      url: '/api/Public/GetSettlementWayDataList',
      method: 'post',
      data,
    });
  },
};
//公共业务接口
export default api;
